package controlador;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import vista.JFrameMenu;

public class ControladorJFrameMenu implements ActionListener {

	private JFrameMenu jframeMenu;

	public ControladorJFrameMenu() {
		super();
		this.jframeMenu = new JFrameMenu();
		this.jframeMenu.setLocationRelativeTo(null);
		this.jframeMenu.setVisible(true);
		this.jframeMenu.addListener(this);
	}

	public void actionPerformed(ActionEvent e) {
		String actionCommand = e.getActionCommand();
		if (actionCommand.equals("Salir")) {
			System.exit(0);
		} else if (actionCommand.equals("Registrar")) {
			new ControladorJFrameRegistrarPlanteamiento();
		} else if (actionCommand.equals("Consultar")) {
			new ControladorJFrameRegistrarPlanteamiento();
		}
	}

}
